9c35cfdb3916c1d0547e78453420feffb367b13f,src/spade/reporter/Audit.java,Audit,handleKill,#Map#,1267
Before Change
putProcess(eventData); //check if it exists. if not then add and return.
Process addedUnit = pushUnitIterationOnStack(pid, unitId, time); //create unit and add it to data structure
//add edge between the new unit and the main unit to keep the graph connected
WasTriggeredBy wtb = new WasTriggeredBy(addedUnit, getContainingProcessVertex(pid));
wtb.addAnnotation("operation", getOperation(SYSCALL.UNIT));
wtb.addAnnotation("time", eventData.get("time"));
addEventIdAndSourceAnnotationToEdge(wtb, eventData.get("eventid"), BEEP);
putEdge(wtb);
}else if(arg0.intValue() == -101){ //unit end
//remove all iterations of the given unit
popUnitIterationsFromStack(pid, unitId, time);
After Change
}
if(arg0.intValue() == -100){ //unit start
putProcess(eventData); //check if it exists. if not then add and return.
Process addedUnit = pushUnitIterationOnStack(pid, unitId, time); //create unit and add it to data structure
//add edge between the new unit and the main unit to keep the graph connected
putWasTriggeredByEdge(addedUnit, getContainingProcessVertex(pid), eventData.get("eventid"), time, BEEP, getOperation(SYSCALL.UNIT));
}else if(arg0.intValue() == -101){ //unit end
//remove all iterations of the given unit
popUnitIterationsFromStack(pid, unitId);